negotiator.boaframework.sharedagentstate.anac2011
Class TheNegotiatorSAS
java.lang.Object
negotiator.boaframework.SharedAgentState
negotiator.boaframework.sharedagentstate.anac2011.TheNegotiatorSAS
public class TheNegotiatorSAS
- extends SharedAgentState
This is the shared code of the acceptance condition and bidding strategy of ANAC 2011 TheNegotiator.
The code was taken from the ANAC2011 TheNegotiator and adapted to work within the BOA framework.
- Author:
- Mark Hendrikx
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TheNegotiatorSAS
public TheNegotiatorSAS(NegotiationSession negoSession)
getPossibleBids
public java.util.ArrayList<BidDetails> getPossibleBids()
calculateEndPhases
public void calculateEndPhases()
- Calculates the time which should be spend on each phase based on
the distribution of the utilities of the bids.
calculateCurrentPhase
public int calculateCurrentPhase(double time)
- Returns the current phase of the negotiation.
- Returns:
- phase of the negotiation
calculateThreshold
public double calculateThreshold(double time)
- Returns the time dependent threshold which specifies how good a
bid of an opponent should be to be accepted. This threshold is
also used as a minimum for the utility of the bid of our agent.
- Returns:
- threshold
calculateMovesLeft
public int calculateMovesLeft()
calculateEndPhaseThresholds
public void calculateEndPhaseThresholds()
calculatePropArray
public void calculatePropArray()
- Calculate how many possible bids are within a certain threshold interval.
This is done for all the bins (phases).
getPropArray
public int[] getPropArray()
getPhase
public int getPhase()
getThreshold
public double getThreshold()
getMovesLeft
public int getMovesLeft()